From cfca4d6941023d678d99e6fbd2a88f411b77e690 Mon Sep 17 00:00:00 2001 From: "vhanquez@kneesa.uk.xensource.com" Date: Mon, 10 Apr 2006 14:51:10 +0000 Subject: [PATCH] fix bug #609 - error: PIC register `bx' clobbered in `asm' Signed-off-by: Vincent Hanquez --- tools/ioemu/hw/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/hw/vga.c b/tools/ioemu/hw/vga.c index 3120ebac5d..11daaa27a2 100644 --- a/tools/ioemu/hw/vga.c +++ b/tools/ioemu/hw/vga.c @@ -1369,10 +1369,10 @@ static inline unsigned int cpuid_edx(unsigned int op) { unsigned int eax, edx; - __asm__("cpuid" + __asm__("pushl %%ebx; cpuid; popl %%ebx" : "=a" (eax), "=d" (edx) : "0" (op) - : "bx", "cx"); + : "cx"); return edx; } -- 2.30.2